package org.example.controller;

import org.example.domain.User;
import org.example.mapper.UserMapper;
import org.example.service.UserService;
import org.example.util.JwtToken;
import org.example.util.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

@RestController
@RequestMapping("/user")
public class UserController {
    @Resource
    private UserService userService;
    @PostMapping("/login")
    public Result login(@RequestBody User user){

        return userService.login(user);
    }
}
